Skip to content

docs(cndocs): 同步更多 React Native 中文文档更新#1009

Open
sunnylqm wants to merge 6 commits intoproductionfrom
auto-translate-20260410-batch-2
Open

docs(cndocs): 同步更多 React Native 中文文档更新#1009
sunnylqm wants to merge 6 commits intoproductionfrom
auto-translate-20260410-batch-2

Conversation

@sunnylqm
Copy link
Copy Markdown

@sunnylqm sunnylqm commented Apr 10, 2026

Summary

  • 同步已移除的 DatePickerAndroid / DatePickerIOS 文档
  • 更新 debugging、handling-text-input、imagebackground 等页面到当前上游结构
  • 同步 introduction、javascript-environment、keyboard 的内容与文档结构
  • 补齐 dynamiccolorios 的高对比度与辅助功能说明

Updated files

  • cndocs/datepickerandroid.md
  • cndocs/datepickerios.md
  • cndocs/dynamiccolorios.md
  • cndocs/debugging.md
  • cndocs/handling-text-input.md
  • cndocs/imagebackground.md
  • cndocs/introduction.md
  • cndocs/javascript-environment.md
  • cndocs/keyboard.md

Notes

  • sync-translations.sh 在改动合入 production 前,仍可能继续将这些文件列为候选,这是当前按 production 时间戳判断的脚本行为。

Test Plan

  • 逐文件对照英文源文档检查结构与内容
  • 确认仅提交文档同步改动
  • 本地检查 git diff 与提交内容

Summary by CodeRabbit

  • Documentation

    • Expanded debugging guide with refreshed DevTools, LogBox, developer-menu and performance guidance.
    • Added high-contrast behavior to DynamicColorIOS and updated examples.
    • Clarified TextInput behavior and examples; refreshed introduction and JavaScript runtime guidance.
    • Updated ImageBackground example to use safe-area components and clarified keyboard event behavior on Android.
    • Reorganized resources into topic-oriented learning and tooling guidance.
  • Deprecated

    • DatePickerAndroid and DatePickerIOS removed; use community packages instead.
  • Chore

    • Removed package manager field from project metadata.

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 10, 2026

Deploy Preview for reactnativecn failed. Why did it fail? →

Name Link
🔨 Latest commit a0e556e
🔍 Latest deploy log https://app.netlify.com/projects/reactnativecn/deploys/69db632e9c68bd0008d05979

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 10, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 771bcab2-9904-4c3a-bb6e-1c6a08e128bd

📥 Commits

Reviewing files that changed from the base of the PR and between 2fbf4ac and a0e556e.

📒 Files selected for processing (2)
  • cndocs/more-resources.md
  • package.json
✅ Files skipped from review due to trivial changes (1)
  • package.json
🚧 Files skipped from review as they are similar to previous changes (1)
  • cndocs/more-resources.md

📝 Walkthrough

Walkthrough

Documentation-only edits across Chinese React Native docs: removed DatePickerAndroid/DatePickerIOS content in favor of removal notices, reworked debugging (DevTools/LogBox) and several guides/components (examples, wording, and callouts), plus removal of packageManager from root package.json.

Changes

Cohort / File(s) Summary
Deprecated date pickers
cndocs/datepickerandroid.md, cndocs/datepickerios.md
Deleted prior API docs/examples and replaced with :::danger notices stating the components were removed; updated frontmatter titles.
Debugging docs rework
cndocs/debugging.md
Renamed page, simplified developer-menu instructions, added "打开 DevTools" content, reworked LogBox behavior and ignore APIs with examples, removed older debugger/Flipper details, and updated images.
Dynamic color & keyboard
cndocs/dynamiccolorios.md, cndocs/keyboard.md
DynamicColorIOS: clarified required dark/light (plus optional high-contrast keys) and runtime selection behavior; Keyboard: replaced Android note with structured :::note about event limitations.
Component examples & refs
cndocs/imagebackground.md, cndocs/handling-text-input.md
ImageBackground example now uses SafeAreaProvider/SafeAreaView and simplifies image ref description; TextInput documentation clarifies handlers, updates example naming/formatting and output example.
Guides & intro updates
cndocs/introduction.md, cndocs/javascript-environment.md, cndocs/more-resources.md
Added frontmatter description, adjusted intro banner/Snack content and callouts, simplified JS runtime/Babel/tooling wording, and restructured resources with topic-based learning paths and cautions about legacy native APIs.
Repository metadata
package.json
Removed root packageManager field ("yarn@4.13.0") and trimmed trailing newline.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Poem

🐰 I nibbled through docs with tidy care,
Removed old leaves, placed new callouts there,
Examples now hop neatly in line,
Warnings and tips arranged so fine,
A small rabbit's edit — crisp and fair.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: synchronizing multiple React Native Chinese documentation updates across multiple files.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch auto-translate-20260410-batch-2

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@cndocs/imagebackground.md`:
- Around line 16-17: The SnackPlayer example declaration is missing the external
dependency for the imports SafeAreaView and SafeAreaProvider; update the
SnackPlayer tag (the example header named ImageBackground) to include
dependencies=react-native-safe-area-context so the example becomes SnackPlayer
name=ImageBackground&dependencies=react-native-safe-area-context, ensuring the
imported SafeAreaView and SafeAreaProvider are available at runtime.
🪄 Autofix (Beta)

✅ Autofix completed


ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: b25d42c8-9795-4967-a51d-deec854fc233

📥 Commits

Reviewing files that changed from the base of the PR and between 769e14c and 163bebd.

📒 Files selected for processing (9)
  • cndocs/datepickerandroid.md
  • cndocs/datepickerios.md
  • cndocs/debugging.md
  • cndocs/dynamiccolorios.md
  • cndocs/handling-text-input.md
  • cndocs/imagebackground.md
  • cndocs/introduction.md
  • cndocs/javascript-environment.md
  • cndocs/keyboard.md

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@cndocs/more-resources.md`:
- Line 47: Update the four legacy documentation links in the sentence that
currently point to `legacy/native-modules-android.md`,
`legacy/native-modules-ios.md`, `legacy/native-components-android.md`, and
`legacy/native-components-ios.md` by removing the `.md` extension so they become
`legacy/native-modules-android`, `legacy/native-modules-ios`,
`legacy/native-components-android`, and `legacy/native-components-ios`; locate
the sentence containing these link targets (the line referencing Native Modules
and Native Components) and replace each `.md` suffixed link with the
corresponding extensionless path.
🪄 Autofix (Beta)

✅ Autofix completed


ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: a6e31b5a-6eab-414b-a446-20fb50ea0264

📥 Commits

Reviewing files that changed from the base of the PR and between 163bebd and c54cc40.

📒 Files selected for processing (1)
  • cndocs/more-resources.md

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 12, 2026

Note

Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it.

⚠️ Branch updated during autofix.

The branch was updated while autofix was in progress. Please try again.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 12, 2026

Note

Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it.

Fixes Applied Successfully

Fixed 1 file(s) based on 1 unresolved review comment.

Files modified:

  • cndocs/imagebackground.md

Commit: 2fbf4ac5cc3881ae61e1a92fdadea349b8f9ebca

The changes have been pushed to the auto-translate-20260410-batch-2 branch.

Time taken: 2m 9s

Fixed 1 file(s) based on 1 unresolved review comment.

Co-authored-by: CodeRabbit <noreply@coderabbit.ai>
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 12, 2026

Note

Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it.

Fixes Applied Successfully

Fixed 2 file(s) based on 1 unresolved review comment.

Files modified:

  • cndocs/more-resources.md
  • package.json

Commit: a0e556e16bfd9a8cd5633690d35925f61c6a0e28

The changes have been pushed to the auto-translate-20260410-batch-2 branch.

Time taken: 2m 8s

Fixed 2 file(s) based on 1 unresolved review comment.

Co-authored-by: CodeRabbit <noreply@coderabbit.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant